<!--_meta 作为公共模版分离出去-->
<?php $this->load->view('public/meta.html');?>
<!--/meta 作为公共模版分离出去-->

<title>栏目设置</title>
</head>
<body>
<!--_header 作为公共模版分离出去-->
<?php $this->load->view('public/header.html');?>
<!--/_header 作为公共模版分离出去-->

<!--_menu 作为公共模版分离出去-->
<?php $this->load->view('public/menu.html');?>
<!--/_menu 作为公共模版分离出去-->
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 栏目管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="pd-20">
		<form action="<?php echo base_url();?>admin/category/insert" method="post" class="form form-horizontal" id="form-category-add" enctype="multipart/form-data">
			<div id="tab-category" class="HuiTab">
				<div class="tabCon">
					
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>上级栏目：</label>
						<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">
							<select class="select" id="sel_Sub" name="parent_id" onchange="SetSubID(this);">
								<option value="0">顶级分类</option>
								<?php foreach($cates as $k=>$v) : ?>
								<option value="<?php echo $v['cat_id'];?>"><?php echo str_repeat('&nbsp;&nbsp;├',$v['level'])?> <?php echo $v['cat_name'];?></option>
								<?php endforeach;?>
								
							</select>
							</span> </div>
						<div class="col-3"> </div>
					</div>
					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>分类名称：</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="text" class="input-text" value="" placeholder="" id="" name="cat_name">
						</div>
						<div class="col-3"> </div>
					</div>

					

					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">类别图标：</label>
						<div class="formControls col-xs-8 col-sm-9"> <span class="btn-upload form-group">
							<input class="input-text upload-url" type="text" name="uploadfile" id="uploadfile" readonly nullmsg="请添加分类图标！" style="width:200px">
							<a href="javascript:void();" class="btn btn-primary radius upload-btn"><i class="Hui-iconfont">&#xe642;</i> 浏览文件</a>
							<input type="file" name="ico" class="input-file">
							</span> </div>
					</div>


					<div class="row cl">
						<label class="form-label col-xs-4 col-sm-3">排序值：</label>
						<div class="formControls col-xs-8 col-sm-9">
							<input type="text" class="input-text" value="100" placeholder="输入的值越小，栏目分类位置越靠前" id="" name="sort_order">
						</div>
						<div class="col-3"> </div>
					</div>
				</div>


				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-3">类别描述：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="cat_desc" cols="" rows="" class="textarea"  placeholder="说点什么...最少输入10个字符" datatype="*10-100" dragonfly="true" nullmsg="商品类别简单描述不能为空！" onKeyUp="$.Huitextarealength(this,200)"></textarea>
						<p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
					</div>
				</div>


	
			</div>
			<div class="row cl">
				<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
					<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
				</div>
			</div>
		</form>
	</div>
</section>
<!--_footer 作为公共模版分离出去--> 
<?php $this->load->view('public/footer.html');?>
<!--/_footer /作为公共模版分离出去--> 

<!--请在下方写此页面业务相关的脚本--> 
<script type="text/javascript" src="<?php echo base_url(),ADMIN_DIR?>/lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="<?php echo base_url(),ADMIN_DIR?>/lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="<?php echo base_url(),ADMIN_DIR?>/lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="<?php echo base_url(),ADMIN_DIR?>/lib/webuploader/0.1.5/webuploader.min.js"></script>

<script type="text/javascript">

$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});

	$.Huitab("#tab-category .tabBar span","#tab-category .tabCon","current","click","0");
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>